﻿using Library.Core.Domain.Aggregation;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Synthesize.BaseSet.Domain.Aggregation.Entity.Authority
{
    /// <summary>
    /// 部门表
    /// </summary>
    public class DepartmentInfoEntity : AggregateRoot
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 父节点Id
        /// </summary>
        public Guid? ParentId { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Column(TypeName = "decimal(8, 3)")]
        public decimal Sort { get; set; }
    }
}
